<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/bootstrap-datetimepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
<script type="text/javascript">
//保存
function edit(){
	if($("#seal_name").val()==""){
		$("#seal_name").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_name").focus();
		return false;
	}
	if($("#seal_status").val()==""){
		$("#seal_status").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_status").focus();
		return false;
	}
	if($("#seal_apply_person").val()==""){
		$("#seal_apply_person").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_apply_person").focus();
		return false;
	}
	if($("#link_phone").val()==""){
		$("#link_phone").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#link_phone").focus();
		return false;
	}
	if($("#seal_apply_time").val()==""){
		$("#seal_apply_time").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_apply_time").focus();
		return false;
	}
	if($("#seal_use_time").val()==""){
		$("#seal_use_time").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_use_time").focus();
		return false;
	}
	if($("#seal_apply_department").val()==""){
		$("#seal_apply_department").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_apply_department").focus();
		return false;
	}
	if($("#seal_approve_person").val()==""){
		$("#seal_approve_person").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_approve_person").focus();
		return false;
	}

	if($("#seal_use").val()==""){
		$("#seal_use").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_use").focus();
		return false;
	}
	if($("#seal_remark").val()==""){
		$("#seal_remark").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_remark").focus();
		return false;
	}
	if($("#seal_approve_remark").val()==""){
		$("#seal_approve_remark").tips({
			side:3,
            msg:'请输入',
            bg:'#AE81FF',
            time:2
        });
		$("#seal_approve_remark").focus();
		return false;
	}
	$("#Form").submit();
	$("#zhongxin").hide();
	$("#zhongxin2").show();
}
 
</script>
</head>
<body>
<form action="sealrecord/${msg }.do" name="Form" id="Form" method="post">
	<input type="hidden" name="seal_id" id="seal_id" value="${pd.seal_id}"/>
	<div id="zhongxin">
	<table id="table_report" class="table table-striped table-bordered table-hover">
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">印章名称:</td>
			<td>
			<select id="seal_name" name="seal_name" class="chzn-select" style="vertical-align:top;width: 220px;">
				<option value=""></option>
				<option value="1" <c:if test="${pd.seal_name == 1}">selected="selected"</c:if>>法人印章</option>
				<option value="2" <c:if test="${pd.seal_name == 2}">selected="selected"</c:if>>财务印章</option>
				<option value="3" <c:if test="${pd.seal_name == 3}">selected="selected"</c:if>>公司印章</option>
				<option value="4" <c:if test="${pd.seal_name == 4}">selected="selected"</c:if>>人事印章</option>
			</select>
			</td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">印章状态:</td>
			<td>
			<select id="seal_status" name="seal_status" class="chzn-select" style="vertical-align:top;width: 220px;">
				<option value=""></option>
				<option value="1" <c:if test="${pd.seal_status == 1}">selected="selected"</c:if>>审合通过</option>
				<option value="3" <c:if test="${pd.seal_status == 3}">selected="selected"</c:if>>审核失败</option>
			</select>
			</td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">申请人:</td>
			<td><input type="text" name="seal_apply_person" id="seal_apply_person" value="${pd.seal_apply_person}" maxlength="32" placeholder="这里输入" title=""/></td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">申请时间:</td>
			<td><input size="16" type="text" name="seal_apply_time" id="seal_apply_time" value="${pd.seal_apply_time}" readonly class="form_datetime" />
			</td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">审核时间:</td>
			<td><input size="16" type="text" name="seal_use_time" id="seal_use_time" value="${pd.seal_use_time}"  readonly class="form_datetime" />
			</td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">联系电话:</td>
			<td><input type="text" name="link_phone" id="link_phone" value="${pd.link_phone}" maxlength="32" placeholder="这里输入" title=""/></td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">申请部门:</td>
			<td>
			<select id="seal_apply_department" name="seal_apply_department" class="chzn-select" style="vertical-align:top;width: 220px;">
				<option value=""></option>
				<option value="1" <c:if test="${pd.seal_apply_department == 1}">selected="selected"</c:if>>财务部</option>
				<option value="2" <c:if test="${pd.seal_apply_department == 2}">selected="selected"</c:if>>人事部</option>
				<option value="3" <c:if test="${pd.seal_apply_department == 3}">selected="selected"</c:if>>销售部</option>
				<option value="4" <c:if test="${pd.seal_apply_department == 4}">selected="selected"</c:if>>产品部</option>
			</select>
			</td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">审核人:</td>
			<td><input type="text" name="seal_approve_person" id="seal_approve_person" value="${pd.seal_approve_person}" maxlength="32" placeholder="这里输入" title=""/></td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">印章用途:</td>
			<td><input type="text" name="seal_use" id="seal_use" value="${pd.seal_use}" maxlength="32" placeholder="这里输入" title=""/></td>
		</tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">申请备注:</td>
			<td><input type="text" name="seal_remark" id="seal_remark" value="${pd.seal_remark}" maxlength="32" placeholder="这里输入" title=""/></td>
		</tr>
		<tr>
		<tr>
			<td style="width:70px;text-align: right;padding-top: 13px;">审批人备注:</td>
			<td><input type="text" name="seal_approve_remark" id="seal_approve_remark" value="${pd.seal_approve_remark}" maxlength="32" placeholder="这里输入" title=""/></td>
		</tr>
		<tr>
			<td style="text-align: center;" colspan="10">
				<a class="btn btn-mini btn-primary" onclick="edit();">修改</a>
				<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
			</td>
		</tr>
	</table>
	</div>
	
	<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
	
</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datetimepicker.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$(".form_datetime").datetimepicker({format: 'yyyy-mm-dd hh:ii',language:'cn',autoclose:'true'});
			
		});
		
		</script>
</body>
</html>